import 'package:markdown/markdown.dart' as md;

final _document = md.Document(
  inlineSyntaxes: [
    md.DelimiterSyntax(
      '#+',
      requiresDelimiterRun: true,
      allowIntraWord: true,
      tags: [
        md.DelimiterTag('mark', 1),
      ],
    ),
  ],
);

List<md.Node> parseMarkdown(String markdown) {
  return _document.parseInline(markdown);
}
